package command;

public class CommandChange implements Command{
	private Tv myTv;
	private int channel;

	public CommandChange(Tv myTv) {
		super();
		this.myTv = myTv;
	}

	public CommandChange(Tv tv, int channel) {
		myTv = tv;
		this.channel = channel;
	}

	public void execute() {
		myTv.changeChannel(channel);
	}
}
